<?php
defined('MCACHE_DEBUG')             || define('MCACHE_DEBUG', false);
defined('MCACHE_DEV_SERVER')        || define('MCACHE_DEV_SERVER', false);
defined('MCACHE_CONNECT_TIMEOUT')   || define('MCACHE_CONNECT_TIMEOUT', 1);

//首页推荐照片
defined('MCACHE_ACT_SSPC_PHOTO_INDEX')    || define('MCACHE_ACT_SSPC_PHOTO_INDEX', 'mcache_act_sspc_get_photo_is_index');
//给指定用户投票最多的5位用户
defined('MCACHE_ACT_SSPC_TOP_VOTE_USER')    || define('MCACHE_ACT_SSPC_TOP_VOTE_USER', 'mcache_act_sspc_get_top_user');

/**** getCacheServer start **************************/
function &getCacheServer($const_server)
{

    $ret = array();

    switch ($const_server) 
    {
         case MCACHE_ACT_SSPC_PHOTO_INDEX:  
         case MCACHE_ACT_SSPC_TOP_VOTE_USER:
            $ret[0] = array( 'host' => '10.21.2.135', 'port' => 11212);	
            break;
         default:
            if (MCACHE_DEBUG) { var_dump(func_get_args()); }
    }
    return $ret;
}
?>
